@echo off
echo Building frontend...
cd frontend
call npm run build
if errorlevel 1 (
    echo Frontend build failed!
    pause
    exit /b 1
)
cd ..
echo.
echo Starting production server...
echo Server will run on http://localhost:3000
echo.
cd backend
npm start

